package br.com.insula.twithis.processor.impl;

import net.rim.blackberry.api.pdap.BlackBerryMemo;
import br.com.insula.twithis.processor.Payload;
import br.com.insula.twithis.processor.Processor;

public class MemoProcessor implements Processor {

	public Payload getPayload(Object context) {
		BlackBerryMemo memo = (BlackBerryMemo) context;

		String title = memo.getString(BlackBerryMemo.TITLE, BlackBerryMemo.ATTR_NONE);
		String note = memo.getString(BlackBerryMemo.NOTE, BlackBerryMemo.ATTR_NONE);

		return new MessagePayload(title + " - " + note);
	}

}
